package org.devgframwork.datasync.admin.support.init;

public abstract class AbstractInit {

    private AbstractInit nextAbstractInit;

    public AbstractInit(AbstractInit nextAbstractInit) {
        this.nextAbstractInit = nextAbstractInit;
    }

    public void invoke() {
        this.initComponent();
        if (null != nextAbstractInit) {
            nextAbstractInit.invoke();
        }
    }

    public abstract void initComponent();

}
